<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,com.jspsmart.upload.*" errorPage="" %>
<%
request.setCharacterEncoding("GB2312");
%>
<jsp:useBean id="pdownload" scope="page" class="dsp.database.Operation"/>
<%
String sql = "UPDATE web_data SET counter=counter+1 WHERE id=" + request.getParameter("id");
pdownload.update(sql);
%>
<jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<%
sql = "SELECT * FROM sys_cfg WHERE id=10";
ResultSet rs = pdownload.query(sql);
rs.next();
String f = rs.getString("value");
pdownload.closestmt();
pdownload.closeconn();

mySmartUpload.initialize(pageContext);
mySmartUpload.downloadFile(f+request.getParameter("file"));
%>
